package com.jbm.jbmsupplier.util;

import java.io.Serializable;

/**
 * Created by lyh on 2017-02-22.
 */
public class IRegistCustomer implements Serializable
{
    public IRegistCustomer ()
    {
        back = false;
        method = "";
        errorinfo = "";
    }

    public IRegistCustomer ( boolean back, String errorinfo )
    {
        this();

        this.back = back;
        this.errorinfo = errorinfo;
    }

    public IRegistCustomer ( String method, int login_id )
    {
        this();

        this.method = method;
        this.login_id = login_id;
    }

    public   IRegistCustomer(String method, int login_id, String nickname, String logo, int sex)
    {
        this.method = method;
        this.login_id = login_id;
        this.sex = sex;
        this.nickname = nickname;
        this.logo=logo;
    }
    public IRegistCustomer ( String method, int login_id, String name, String pass, String prepass, String ccode, boolean setsign,String promotcode )
    {
        this.method = method;

        this.login_id = login_id;
        this.name = name;
        this.pass = pass;
        this.prepass = prepass;
        this.ccode = ccode;
        this.micromsg = "";
        this.mm_unionid = "";
        this.nickname = "";
        this.sex = -1;
        this.setsign = setsign;
        this.promotcode=promotcode;
    }

    public IRegistCustomer ( String method, int login_id, String name, String pass, String prepass, String ccode, int vcode_id, String mm_unionid, String nickname, int sex ,String logo,String promotcode)
    {
        this ( method, login_id, name, pass, prepass, ccode, false,promotcode );

        this.vcode_id = vcode_id;
        this.mm_unionid = mm_unionid;
        this.nickname = nickname;
        this.sex = sex;
        this.logo=logo;

    }

    private static final long serialVersionUID = 1300001L;

    public boolean back;
    public String method;
    public String errorinfo;

    public int login_id;
    public String name;
    public String pass;
    public String prepass;
    public String ccode;
    public String micromsg;
    public String mm_unionid;
    public String nickname;
    public String logo;
    public int sex;
    public boolean setsign;
    public int vcode_id;
    public String promotcode;
}